MPExitCriticalRegion

Exits a critical region.

OSStatus MPExitCriticalRegion (MPCriticalRegionID criticalRegion);
criticalRegion
A value of type MPCriticalRegionID that specifies the ID of the critical region you want to exit.

function result
A result code. See Result Codes for a list of possible values. If the task does not own the critical region specified by criticalRegion , MPExitCriticalRegion returns kMPInsufficientResourcesErr .
DISCUSSION
This function decrements the use count of the critical region object. When the use count reaches zero, ownership of the critical region object is released (which allows another task to use the critical region).

VERSION NOTES
Introduced with Multiprocessing Services 1.0.

SEE ALSO
The function MPEnterCriticalRegion .


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)